import os



#测试用
pardir = os.path.abspath(os.pardir)
image1FilePath = pardir + '/image/zombie/zombie1/zombie1_{}.png'
imageSize = os.listdir(image1FilePath[:image1FilePath.rfind('/')])
print(len(imageSize))